﻿#region Using Directives

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml.Linq;

    using Csla;

    using MarketPulse.BusinessLogic.Core;

#endregion

namespace MarketPulse.BusinessLogic.Common
{
    /// <summary>
    /// This class represents a collection of (Read Only) Branch Attribute objects
    /// </summary>
    [Serializable]
    [Csla.Server.ObjectFactory("MarketPulse.DataAccess.Factory.BranchFactory, MarketPulse.DataAccess.Factory", "FetchAttributeInfoList")]
    public class BranchAttributeInfoList : MarketPulseReadOnlyListBase<BranchAttributeInfoList, BranchAttributeInfo>
    {

        #region Constructors

            /// <summary>
            /// Default constructor is private in order to (try to) enforce construction
            /// only via the static factory methods provided.
            /// </summary>
            private BranchAttributeInfoList()
            {
            }

        #endregion

        #region Methods

            #region Factory Methods

                /// <summary>
                /// Method used to get a list of (Read Only) Branch Attributes that are associated with a particular Branch.
                /// </summary>
                /// <param name="branchGUID">The branch Guid used to retrieve the Branch Attributes</param>
                /// <returns>The populated read only branch attribute collection</returns>
                internal static BranchAttributeInfoList Get(Guid branchGUID)
                {
                    return DataPortal.Fetch<BranchAttributeInfoList>(new SingleCriteria<Guid>(branchGUID));
                }

            #endregion

        #endregion
    }
}
